<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script src="../js/d3.v3.js"></script>
</head>
<body>
<script>
	var scale = d3.scale.linear()
			.range([10, 350])
			.domain([100, 500]);

	console.log(scale(100));		// 10
	console.log(scale(500));		// 350
	console.log(scale(200));		// 95

</script>
</body>
</html>